﻿//
// Created by Administrator on 2020/9/8.
//

#ifndef EXAMPLE_CPP_PERSON_H
#define EXAMPLE_CPP_PERSON_H

#include <iostream>
#include <string>

class Person {

private:
    char *name;
    int age;

protected:
    inline const char *getName() const {
        return name;
    };

    inline const int getAge() const {
        return age;
    };

public:
    Person(const char *name, int age);

    virtual ~Person();

    virtual void toString();

    friend std::ostream &operator<<(std::ostream &os, const Person &person);
};


#endif //EXAMPLE_CPP_PERSON_H
